#!/bin/bash
#date:2018-12-24

logpath="/tmp/"
#curl http://www.baidu.com
echo  >$logpath/1.log
cd ~/Documents/flash/hr
echo 开始发布代码 >>$logpath/1.log
echo $(date) >>$logpath/1.log
git pull >>$logpath/1.log
cd ./client
npm install >>$logpath/1.log
npm run build >>$logpath/1.log
#npm run dev
ls >>$logpath/1.log
echo $(date) >>$logpath/1.log
echo 发布完成 >>$logpath/1.log
echo "exit" >>$logpath/1.log